package joo.module.sys;

import joo.model.User;

import com.jfinal.core.Controller;

public class UserController extends Controller{
	
	//TODO improve it
	public void login(){
		String username = getPara("username");
		String password = getPara("password");
		User user = User.dao.findById(username);
		if(null == user){
			//no user
			
		}else{
			String p = user.getStr("password");
			if(password.equals(p)){
				//success
			}else{
				//error username or password
			}
		}
	}
}
